﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Administrator/MasterPage.master" AutoEventWireup="false" CodeFile="SPurgeJob.aspx.vb" Inherits="Administrator_SPurgeJob" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        var hasSubmitted = 0;
        function NoDoubleSubmit() {
            var divMsg = document.getElementById('Processing');
            if (hasSubmitted == 0) {
                hasSubmitted = 0;
                divMsg.style.display = 'block';
                return true;
            }
            return false;
        }
    </script>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table style="width:100%;">
            <tr>
                <td>
                                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="grdPurge" runat="server" AutoGenerateColumns="False" CellPadding="4" 
                                        ForeColor="#FFCC66" 
                        style="text-align: center; margin-right: 0px;" Width="100%" 
                                        CssClass="control">
                        <FooterStyle BackColor="#E38120" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField DataField="PURGE_DESC" HeaderText="รายละเอียด" ReadOnly="True">
                            <ItemStyle HorizontalAlign="Left" Width="250px" />
                            </asp:BoundField>
                             <asp:TemplateField HeaderText="วันที่">
                            <ItemTemplate>
                                 <asp:Label ID="lblUpdateDate" runat="server" 
                                     Text='<%# Eval("LAST_PURGE_DATE") %>'></asp:Label>
                                 </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" Width="250px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="สถานะ">
                                <ItemTemplate>
                                    <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("STATUS_PURGE") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFFFCC" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#E38120" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="center">
                 <SPAN id="Processing" style="DISPLAY: none">
 <img src="../img/icon/ajax-loader.gif" alt="Please wait" />
            กรุณารอสักครู่ ระบบกำลังค้นหาข้อมูล...
  </SPAN>
                  </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Button ID="btnRefresh" runat="server" CssClass="control" 
                        Text="Refresh" Width="100px" />
                    <asp:Button ID="btnManual" runat="server" CssClass="control" 
                        Text="Manual Purge" Width="100px" />
                    <asp:Button ID="btnPrint" runat="server" CssClass="control" Text="พิมพ์" 
                        Visible="False" Width="100px" />
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

